﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DelayUnActive : MonoBehaviour
{
    public float time=1;
    private void OnEnable() {
        Invoke("UnActive",time);
    }
    void UnActive(){
        gameObject.SetActive(false);
    }
}
